package hezi.core;

import hezi.helper.Linkhelper;

import org.apache.log4j.Logger;

import dz.common.TimeTool;


public class Link{
	public static Logger logger = Logger.getLogger("");
	String id;
	Post post;
	String url;
	Linkhelper linkhelper;

	
	public Link(Post post, String linkurl) {
		this.id = TimeTool.getSimpleId();
		this.post = post;
		this.url = linkurl;
		this.linkhelper = Application.getLinkhelper();
//		post.addLink(this);
	}


	public String getUrl() {
		return url;
	}
	
	public String getId() {
		return id;
	}

	

	public void storedb() {
		linkhelper.storeThisLink(this);
		
	}
	
}
